package com.schoolvisitors.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class CreateInstrumentDto {
    private Long id;

    @NotNull(message = "房间ID不能为空")
    private Long roomId;

    @NotBlank(message = "仪器名称不能为空")
    @Size(max = 16, message = "仪器名称长度不能超过16字符")
    private String name;

    @NotNull(message = "类型不能为空")
    private Long type;

    @NotNull(message = "子类型不能为空")
    private Long subType;

    @NotNull(message = "可用状态不能为空")
    private Boolean available;

    @NotNull(message = "积分消耗不能为空")
    @Min(value = 0, message = "积分消耗不能为负")
    private Long pointsCost;

    @NotBlank(message = "图片不能为空")
    private String imgName;
}